﻿namespace Sidvall.Office
{
	public class WorksheetDisplayOptions : IWorksheetDisplayOptions
	{
		#region Public Members

		#region FrozenColumns

		public int FrozenColumns
		{
			get
			{
				return this.Worksheet.InternalWorksheet.DisplayOptions.FrozenPaneSettings.FrozenColumns;
			}
			set
			{
				this.Worksheet.InternalWorksheet.DisplayOptions.FrozenPaneSettings.FrozenColumns = value;
			}
		}

		#endregion
		#region FrozenRows

		public int FrozenRows
		{
			get
			{
				return this.Worksheet.InternalWorksheet.DisplayOptions.FrozenPaneSettings.FrozenRows;
			}
			set
			{
				this.Worksheet.InternalWorksheet.DisplayOptions.FrozenPaneSettings.FrozenRows = value;
			}
		}

		#endregion
		#region PanesAreFrozen

		public bool PanesAreFrozen
		{
			get
			{
				return this.Worksheet.InternalWorksheet.DisplayOptions.PanesAreFrozen;
			}
			set
			{
				this.Worksheet.InternalWorksheet.DisplayOptions.PanesAreFrozen = value;
			}
		}

		#endregion
		#region ShowGridLines

		public bool ShowGridLines
		{
			get
			{
				return this.Worksheet.InternalWorksheet.DisplayOptions.ShowGridlines;
			}
			set
			{
				this.Worksheet.InternalWorksheet.DisplayOptions.ShowGridlines = value;
			}
		}

		#endregion

		#region ToString

		public override string ToString()
		{
			return "WorksheetDisplayOptions - Sidvall.Office.IG";
		}

		#endregion

		#endregion
		#region Private Members

		internal Worksheet Worksheet { get; set; }

		#endregion
		#region Constructors

		public WorksheetDisplayOptions(Worksheet worksheet)
		{
			this.Worksheet = worksheet;
		}

		#endregion
	}
}
